package chpt_05_01_adaptor;

/**
 *
 * @author Ping
 * @date 2023/3/30 9:04
 **/

/**
 * Target role in Adaptor pattern
 */
public interface MoreSafetyEncoder {
    /**
     * encode text multi-round.
     * @param text
     * @param round
     * @return
     */
    public String encodeInRound(String text, int round) throws Throwable;

    /**
     * encode text by adding salt.
     * @param text
     * @param salt
     * @return
     */
    public String encodeBySalt(String text, String salt) throws Throwable;
}
